From: Jasper St. Pierre Date: Mon, 4 Jun 2012 23:30:54 +0000 (-0400) Subject: shell-recorder: Don't use a default filename X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5946 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f5ca649977db8745d33b647c4b3de1fc73d2ab3d;p=gnome-shell.git shell-recorder: Don't use a default filename The default filename isn't localized and isn't the same one that the shell sets. Just remove the fallback mechanism, and abort recording if somebody didn't set the filename https://bugzilla.gnome.org/show_bug.cgi?id=677434 --- diff --git a/src/shell-recorder.c b/src/shell-recorder.c index aa170e774..9211f5dcb 100644 --- a/src/shell-recorder.c +++ b/src/shell-recorder.c @@ -150,10 +150,6 @@ G_DEFINE_TYPE(ShellRecorder, shell_recorder, G_TYPE_OBJECT); */ #define DEFAULT_PIPELINE "vp8enc quality=8 speed=6 threads=%T ! queue ! webmmux" -/* The default filename pattern. Example Screencast at 2009-03-11 00:08:15.webm - */ -#define DEFAULT_FILENAME "Screencast at %d %t.webm" - /* If we can find the amount of memory on the machine, we use half * of that for memory_target, otherwise, we use this value, in kB. */ @@ -1189,7 +1185,7 @@ recorder_open_outfile (ShellRecorder *recorder) pattern = recorder->filename; if (!pattern) - pattern = DEFAULT_FILENAME; + return -1; while (TRUE) {